package com.example.demo.study.aop;

import org.springframework.stereotype.Component;

@Component
public class Boy implements IBuy{

    @Override
    public String buy() {
        System.out.println("男孩买了一个游戏机!");
        return "游戏机";
    }

    @Override
    public double gift(double price) {
        System.out.println(String.format("男孩收到一件%s元的游戏机",price));
        return price;
    }
}
